package com.tianji.learning.controller.admin;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.query.QuestionAdminPageQuery;
import com.tianji.learning.domain.vo.QuestionAdminVO;
import com.tianji.learning.service.IInteractionQuestionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 互动提问的admin端
 * </p>
 *
 * @author xjs
 */
@Api(tags = "管理端InteractionQuestion管理")
@RestController
@RequiredArgsConstructor
@RequestMapping("/admin/questions")
public class InteractionQuestionAdminController {

    private final IInteractionQuestionService interactionQuestionService;


    /**
     * 问题分页查询
     * */
    @ApiOperation("问题分页查询")
    @GetMapping("/page")
    public PageDTO<QuestionAdminVO> adminPageQuery(QuestionAdminPageQuery query){
        return interactionQuestionService.adminPageQuery(query);
    }


}
